<script>
    let p1 = new Promise((resolve, reject) => {
        resolve({name: '小花', age: 18})
        // reject(0)
    })
    console.dir(p1)

    p1.then(res => {
        console.log(res)
    }).catch(err => {
        console.log(err)
    }).finally(() => {
        console.log('一定会执行的代码')
    })
</script>